//
//  TriggerManager.h
//  MapEdit
//
//  Created by Steven Canfield on 7/15/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "Scenario.h"

@interface TriggerManager : NSObject {
	chk_trig_t	* triggers;
	int			  trigCount;
	
	IBOutlet	NSWindow	* _window;
	IBOutlet	NSView		* _conditionView;
	IBOutlet	NSView		* _actionView;
	IBOutlet	NSTableView * _triggerList;
	
	NSMutableArray			* _conditionViews;
	NSMutableArray			* _actionViews;
	
	NSArray					* _viewDescriptions;
	
}
- (id)initWithData:(NSData *)trigData;

- (NSView *)createConditionViewForTriggerAtIndex:(int)trigIndex;
- (NSView *)createViewForCondition:(chk_condition_t)condition;

- (int)numberOfRowsInTableView:(NSTableView *)tableView;
- (id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)rowIndex;
@end
